import 'package:flutter/material.dart';

import '../../../shared/shared.dart';

class SettingOption extends StatelessWidget {
  final GestureTapCallback? onTap;
  final String text;

  const SettingOption({Key? key, required this.text, this.onTap})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        InkWell(
          onTap: onTap,
          radius: 0,
          highlightColor: Colors.transparent,
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Container(
                  margin: const EdgeInsets.symmetric(vertical: 20),
                  child: Text(
                    text,
                    style: const TextStyle(
                        color: ColorConstants.themeColor, fontSize: 18),
                  )),
              const Icon(Icons.arrow_forward_ios, color: Colors.white, size: 22)
            ],
          ),
        ),
        CommonWidget.line()
      ],
    );
  }
}
